package com.newly.common.base.exception;

/**
 * @program: newly-parent
 * @remark:
 * @author: guan
 * @create: 2022-01-28 10:56
 */
public class NewlyLoginException extends RuntimeException {
    private int code;
    private String msg;

    public NewlyLoginException() {
    }

    public NewlyLoginException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public NewlyLoginException(String message) {
        super(message);
    }

    public NewlyLoginException(String message, Throwable cause) {
        super(message, cause);
    }

    public NewlyLoginException(Throwable cause) {
        super(cause);
    }

    public NewlyLoginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
